-- GENERATED SPELL FOR [Shadowsword Vanquisher] --


function spell0_25486(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(46468,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25486', 540, 1)
end

function spell1_25486(pUnit, Event) --@Melt Armor,n/a--
pUnit:FullCastSpellOnTarget(46469,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25486', 30342, 1)
end

function Sorts_25486(pUnit, Event)
local choix_sorts_25486 = math.random(0, 1)
if choix_sorts_25486 == 0 then
pUnit:RegisterEvent('spell0_25486', 1, 1)
end
if choix_sorts_25486 == 1 then
pUnit:RegisterEvent('spell1_25486', 1, 1)
end
end

function mob25486_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25486', math.random(1500, 3000), 1)
end

function mob25486_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25486_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25486_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25486, 1, 'mob25486_Action')
RegisterUnitEvent(25486, 2, 'mob25486_Leave')
RegisterUnitEvent(25486, 3, 'mob25486_Kill')
RegisterUnitEvent(25486, 4, 'mob25486_Die')
